#include<iostream>
using namespace std;
const int MAXN = 10000;
int exam5_1()
{
	int a[MAXN];
	int i, n;
	cin >> n;
	for (i = 0; i < n; i++)
		cin >> a[i];
	for (i = n - 1; i >= 0; i--)
		cout << a[i] << " ";
	return 0;
}